﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace KPIClient.Views
{

    public partial class WorkbenchItem : UserControl
    {
        public WorkbenchItem()
        {
            InitializeComponent();
        }


        #region 附加属性 IconSource
        public ImageSource IconSource { get { return (ImageSource)GetValue(IconSourceProperty); } set { SetValue(IconSourceProperty, value); } }
        public static readonly DependencyProperty IconSourceProperty = DependencyProperty.Register("IconSource", typeof(ImageSource), typeof(WorkbenchItem), new PropertyMetadata(default(ImageSource)));
        #endregion



        #region 附加属性 Title
        public string Title { get { return (string)GetValue(TitleProperty); } set { SetValue(TitleProperty, value); } }
        public static readonly DependencyProperty TitleProperty = DependencyProperty.Register("Title", typeof(string), typeof(WorkbenchItem), new PropertyMetadata(default(string)));
        #endregion

        #region 附加属性 ContentStr
        public string ContentStr { get { return (string)GetValue(ContentStrProperty); } set { SetValue(ContentStrProperty, value); } }
        public static readonly DependencyProperty ContentStrProperty = DependencyProperty.Register("ContentStr", typeof(string), typeof(WorkbenchItem), new PropertyMetadata(default(string)));
        #endregion

    }
}
